package com.molin.threadTest.blockingQueueTest;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> list=new ArrayBlockingQueue(10);
        Foodie foodie=new Foodie(list);
        Cooker cooker=new Cooker(list);
        foodie.start();
        cooker.start();
    }
}
